package com.syq.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CourseTemplateDetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public CourseTemplateDetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCotTnoIsNull() {
            addCriterion("cot_tno is null");
            return (Criteria) this;
        }

        public Criteria andCotTnoIsNotNull() {
            addCriterion("cot_tno is not null");
            return (Criteria) this;
        }

        public Criteria andCotTnoEqualTo(String value) {
            addCriterion("cot_tno =", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoNotEqualTo(String value) {
            addCriterion("cot_tno <>", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoGreaterThan(String value) {
            addCriterion("cot_tno >", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoGreaterThanOrEqualTo(String value) {
            addCriterion("cot_tno >=", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoLessThan(String value) {
            addCriterion("cot_tno <", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoLessThanOrEqualTo(String value) {
            addCriterion("cot_tno <=", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoLike(String value) {
            addCriterion("cot_tno like", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoNotLike(String value) {
            addCriterion("cot_tno not like", value, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoIn(List<String> values) {
            addCriterion("cot_tno in", values, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoNotIn(List<String> values) {
            addCriterion("cot_tno not in", values, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoBetween(String value1, String value2) {
            addCriterion("cot_tno between", value1, value2, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotTnoNotBetween(String value1, String value2) {
            addCriterion("cot_tno not between", value1, value2, "cotTno");
            return (Criteria) this;
        }

        public Criteria andCotnoIsNull() {
            addCriterion("cotno is null");
            return (Criteria) this;
        }

        public Criteria andCotnoIsNotNull() {
            addCriterion("cotno is not null");
            return (Criteria) this;
        }

        public Criteria andCotnoEqualTo(String value) {
            addCriterion("cotno =", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoNotEqualTo(String value) {
            addCriterion("cotno <>", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoGreaterThan(String value) {
            addCriterion("cotno >", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoGreaterThanOrEqualTo(String value) {
            addCriterion("cotno >=", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoLessThan(String value) {
            addCriterion("cotno <", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoLessThanOrEqualTo(String value) {
            addCriterion("cotno <=", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoLike(String value) {
            addCriterion("cotno like", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoNotLike(String value) {
            addCriterion("cotno not like", value, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoIn(List<String> values) {
            addCriterion("cotno in", values, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoNotIn(List<String> values) {
            addCriterion("cotno not in", values, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoBetween(String value1, String value2) {
            addCriterion("cotno between", value1, value2, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotnoNotBetween(String value1, String value2) {
            addCriterion("cotno not between", value1, value2, "cotno");
            return (Criteria) this;
        }

        public Criteria andCotTtitleIsNull() {
            addCriterion("cot_tTitle is null");
            return (Criteria) this;
        }

        public Criteria andCotTtitleIsNotNull() {
            addCriterion("cot_tTitle is not null");
            return (Criteria) this;
        }

        public Criteria andCotTtitleEqualTo(String value) {
            addCriterion("cot_tTitle =", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleNotEqualTo(String value) {
            addCriterion("cot_tTitle <>", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleGreaterThan(String value) {
            addCriterion("cot_tTitle >", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleGreaterThanOrEqualTo(String value) {
            addCriterion("cot_tTitle >=", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleLessThan(String value) {
            addCriterion("cot_tTitle <", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleLessThanOrEqualTo(String value) {
            addCriterion("cot_tTitle <=", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleLike(String value) {
            addCriterion("cot_tTitle like", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleNotLike(String value) {
            addCriterion("cot_tTitle not like", value, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleIn(List<String> values) {
            addCriterion("cot_tTitle in", values, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleNotIn(List<String> values) {
            addCriterion("cot_tTitle not in", values, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleBetween(String value1, String value2) {
            addCriterion("cot_tTitle between", value1, value2, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTtitleNotBetween(String value1, String value2) {
            addCriterion("cot_tTitle not between", value1, value2, "cotTtitle");
            return (Criteria) this;
        }

        public Criteria andCotTdescIsNull() {
            addCriterion("cot_tDesc is null");
            return (Criteria) this;
        }

        public Criteria andCotTdescIsNotNull() {
            addCriterion("cot_tDesc is not null");
            return (Criteria) this;
        }

        public Criteria andCotTdescEqualTo(String value) {
            addCriterion("cot_tDesc =", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescNotEqualTo(String value) {
            addCriterion("cot_tDesc <>", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescGreaterThan(String value) {
            addCriterion("cot_tDesc >", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescGreaterThanOrEqualTo(String value) {
            addCriterion("cot_tDesc >=", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescLessThan(String value) {
            addCriterion("cot_tDesc <", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescLessThanOrEqualTo(String value) {
            addCriterion("cot_tDesc <=", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescLike(String value) {
            addCriterion("cot_tDesc like", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescNotLike(String value) {
            addCriterion("cot_tDesc not like", value, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescIn(List<String> values) {
            addCriterion("cot_tDesc in", values, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescNotIn(List<String> values) {
            addCriterion("cot_tDesc not in", values, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescBetween(String value1, String value2) {
            addCriterion("cot_tDesc between", value1, value2, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTdescNotBetween(String value1, String value2) {
            addCriterion("cot_tDesc not between", value1, value2, "cotTdesc");
            return (Criteria) this;
        }

        public Criteria andCotTtimeIsNull() {
            addCriterion("cot_tTime is null");
            return (Criteria) this;
        }

        public Criteria andCotTtimeIsNotNull() {
            addCriterion("cot_tTime is not null");
            return (Criteria) this;
        }

        public Criteria andCotTtimeEqualTo(Date value) {
            addCriterion("cot_tTime =", value, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeNotEqualTo(Date value) {
            addCriterion("cot_tTime <>", value, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeGreaterThan(Date value) {
            addCriterion("cot_tTime >", value, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cot_tTime >=", value, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeLessThan(Date value) {
            addCriterion("cot_tTime <", value, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeLessThanOrEqualTo(Date value) {
            addCriterion("cot_tTime <=", value, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeIn(List<Date> values) {
            addCriterion("cot_tTime in", values, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeNotIn(List<Date> values) {
            addCriterion("cot_tTime not in", values, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeBetween(Date value1, Date value2) {
            addCriterion("cot_tTime between", value1, value2, "cotTtime");
            return (Criteria) this;
        }

        public Criteria andCotTtimeNotBetween(Date value1, Date value2) {
            addCriterion("cot_tTime not between", value1, value2, "cotTtime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}